package org.lsda.job;

import java.io.Serializable;
import java.util.*;

public class LsdaAction implements Serializable {
	private static final long serialVersionUID = 6330976212633479599L;

	public static final int STATUS_PAUSE = -2;
	
	public static final int STATUS_READY = -1;
	
	public static final int STATUS_SUCCESS = 0;
	
	public static final int STATUS_RUNNING = 1;
	
	public static final int STATUS_FAILED = 2;

	private int schedSeq = -1;

	private int actionSeq = -1;

	/**
	 * the name of executeProg
	 * */
	private String prgName = "";

	/**
	 * parameters for this program
	 * */
	private String prgParam = "";

	/**
	 * host of execution
	 */
	private String host = "";

	/**
	 * the pid of process
	 */
	private int pid = -1;

	/**
	 * output information
	 */
	private String info = "";

	/**
	 * begin time
	 */
	private java.util.Date begTime = null;

	/**
	 * end time
	 */
	private java.util.Date endTime = null;

	/**
	 * status -2:pause, -1:to run, 0:success,1:running,2:error
	 */
	private int status = -1;

	/**
	 * constructor
	 */
	public LsdaAction() {
	}

	/**
	 * get the schedule sequence
	 * @return
	 */
	public int getSchedSeq() {
		return schedSeq;
	}

	/**
	 * set the schedule sequence
	 * @param schedSeq
	 */
	public void setSchedSeq(int schedSeq) {
		this.schedSeq = schedSeq;
	}

	/**
	 * get the action sequence
	 * @return
	 */
	public int getActionSeq() {
		return actionSeq;
	}

	/**
	 * set the action sequence
	 * @param actionSeq
	 */
	public void setActionSeq(int actionSeq) {
		this.actionSeq = actionSeq;
	}

	/**
	 * get the program name
	 * @return
	 */
	public String getPrgName() {
		return prgName;
	}

	/**
	 * set the program name
	 * @param prgName
	 */
	public void setPrgName(String prgName) {
		this.prgName = prgName;
	}

	public String getPrgParam() {
		return prgParam;
	}

	public void setPrgParam(String prgParam) {
		this.prgParam = prgParam;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public java.util.Date getBegTime() {
		return begTime;
	}

	public void setBegTime(java.util.Date begTime) {
		this.begTime = begTime;
	}

	public java.util.Date getEndTime() {
		return endTime;
	}

	public void setEndTime(java.util.Date endTime) {
		this.endTime = endTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
